package main

import "fmt"

type User struct {
	Id   int
	name string

	score float32
}

func getUserName(u User) string {
	return u.name
}
func (u User) getName() string {
	return u.name
}

func (u User) getNameWithPrefix(prefix string) string {

	return fmt.Sprintf("[%s--%s]", prefix, u.name)
}
func main() {
	u5 := User{name: "Vic", score: 90, Id: 200}
	fmt.Println(u5.name)
	fmt.Println(getUserName(u5))
	fmt.Println(u5.getName())
	fmt.Println(u5.getNameWithPrefix("***"))
	var u1 User
	fmt.Println(u1.getNameWithPrefix("###"))
	fmt.Printf("%T\n", u5.getName)
	fmt.Printf("%T\n", User.getName)
}
